#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include <QProgressDialog>


namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
    bool findFile(QString path, int flag);
    bool copyDir(QString fomrdir, QString todir, bool flag);
    void copyfile(QString src, QString dst);
    void to_AB(QString src, QString dst);
    void comAB(QString src, QString dst);
    void createFile(QString filePath, QString fileName);

private slots:
    void SlotFindFileAndDir();
    void SlotFindFileAndDir2();
    void SlotCopyDir();
    void clearText();
    void AtoB();
    void BtoA();
    void ComAB();

private:
    Ui::Widget *ui;
    QString path1;
    QString path2;
    int sum;
    int count;//记录已经完成数
};

#endif // WIDGET_H
